package com.jerry.controller;

import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Shirly on 2016/8/15.
 */
@RestController
public class JacksonJsonViewController {

//    @RequestMapping("/jackson1")
//    @JsonView(Yser.OnlyIdView.class)
//    public Yser test1() {
//        return new Yser(1L, "zhangsan");
//    }
//
//    @RequestMapping("/jackson2")
//    @JsonView(Yser.OnlyNameView.class)
//    public Yser test2() {
//        return new Yser(1L, "zhangsan");
//    }
//
//    @RequestMapping("/jackson3")
//    @JsonView(Yser.AllView.class)
//    public Yser test3() {
//        return new Yser(1L, "zhangsan");
//    }
}
